<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License

Name       : Office Memo  
Description: A two-column, fixed-width design with dark color scheme.
Version    : 1.0
Released   : 20120401

-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Office Memo by Free CSS Templates</title>
<link href="http://fonts.googleapis.com/css?family=Arvo" rel="stylesheet" type="text/css" />
<link href="http://fonts.googleapis.com/css?family=Coda:400,800" rel="stylesheet" type="text/css" />
<link href=<?php echo base_url('public/css/bootstrap.min.css')?> rel="stylesheet" type="text/css" media="screen" />
<link href=<?php echo base_url('public/css/style.css')?> rel="stylesheet" type="text/css" media="screen" />
<script src=<?php echo base_url('public/js/jquery-1.7.1.js')?>></script> 
<style type="text/css">
#login_btn{
   float:right;  
   margin-top:10px;
}
</style>

</head>

<body>
<div id="menu-wrapper">
	<div id="menu">
		<ul>
			<li class="home"><a href="<?php echo site_url('frontend/home')?>" >首頁</a></li>
			<?php if(!empty($login)):?>
			  <li class="blog"><a href="<?php echo site_url('frontend/blog')?>">Blog</a></li>
			  <li class="photo"><a href="<?php echo site_url('frontend/photo')?>">相片</a></li>
			  <li class="profile"><a href="<?php echo site_url('frontend/profile')?>" >個人資料</a></li>
			<?php endif;?>
					
			  <li class="link"><a href="<?php echo site_url('frontend/link')?>">連結</a></li>
			<li><a href="#">聯繫</a></li>							
			
			<?php if(empty($login)):?>
			  <input class='btn btn-primary' id="login_btn" type="button" value="登入" onClick="location.href='<?php echo site_url('frontend/login');?>';"/>
		    <?php else:?>		       
		  	  <div id="login_btn" >歡迎:<?php echo $name?> / <b id='logout_btn' style="color:#0193CC;cursor:pointer" onclick="location.href='<?php echo site_url('frontend/login/logout') ?>'">登出</b></div>
		    <?php endif;?>
		</ul>
	</div>
	<!-- end #menu -->
</div>

